<!DOCTYPE html>
<html xmlns:th="www.thymeleaf.org">
<head th:replace="index::head"></head>
<link href="css/cart.css" rel="stylesheet" type="text/css">
<body>
<div th:replace="index::.header"></div>
<div class="container cart">
		<div class="span24">
		
		
		<div class="step step1">
				购物车列表
			</div>
				<table>
					<tbody><tr>
						<th>图片</th>
						<th>商品</th>
						<th>价格</th>
						<th>数量</th>
						<th>小计</th>
						<th>操作</th>
					</tr>
					
						<tr th:each="i:${#numbers.sequence(0,allcart.size()-1)}">
							<td width="60">
								<img th:src="${allcartmap.get(allcart.get(i).pid).image}">
							</td>
							<td>
								<a target="_blank" th:text="${allcartmap.get(allcart.get(i).pid).pname}"></a>
							</td>
							<td th:text="'￥'+${allcartmap.get(allcart.get(i).pid).shopPrice}">
							</td>
							<td class="quantity" th:text="${allcart.get(i).count}" width="60"></td>
							<td width="140">
								<span class="subtotal" th:text="'￥'+${allcartmap.get(allcart.get(i).pid).shopPrice}*${allcart.get(i).count}"></span>
							</td>
							<td>
								<a th:href="'cart.html?pid='+${allcart.get(i).pid}" class="delete">删除</a>
							</td>
						</tr>
				
				</tbody></table>
				
				<dl id="giftItems" class="hidden" style="display: none;">
				</dl>
				<div class="total">
					<em id="promotion"></em>
							<em>
								登录后确认是否享有优惠
							</em>
					赠送积分: <em id="effectivePoint" th:text="${allcartcount}"></em>
					商品金额: <strong id="effectivePrice" th:text="${allcartcount}"></strong>
				</div>
				<div class="bottom">
					<a href="cart.html" id="clear" class="clear">清空购物车</a>
					<a href="pay.html" id="submit" class="submit">提交订单</a>
				</div>
			
		</div>
	</div>
<div class="container footer">
	<div class="span24">
		<div class="footerAd">
					<img src="image/footer.jpg" width="950" height="52" alt="我们的优势" title="我们的优势">
</div>	</div>
	<div class="span24">
		<ul class="bottomNav">
				<li>
						<a >关于我们</a>
						|
					</li>
					<li>
						<a>联系我们</a>
						|
					</li>
					<li>
						<a>招贤纳士</a>
						|
					</li>
					<li>
						<a>法律声明</a>
						|
					</li>
					<li>
						<a>友情链接</a>
						|
					</li>
					<li>
						<a target="_blank">支付方式</a>
						|
					</li>
					<li>
						<a  target="_blank">配送方式</a>
						|
					</li>
					<li>
						<a>服务声明</a>
						|
					</li>
					<li>
						<a>广告声明</a>
						
					</li>
		</ul>
	</div>
	<div class="span24">
		<div class="copyright">Copyright © 2005-2013 Mango商城 版权所有</div>
	</div>
</div>
</body></html>